LrmPackageReader Constructor (string)

Initializes a new instance of the LrmPackageReader class with the specified LRM package. Uses the current user's identity to access files in the package.

Parent Type: LrmPackageReader

Namespace: Microsoft.LearningComponents

Assembly: Microsoft.LearningComponents.dll

Syntax
C#

public LrmPackageReader (
string filePath

)

Parameters

filePath

The path to the LRM file containing the package, e.g. "C:\Foo\Bar.lrm".

Exceptions
Exception type Condition
ArgumentNullException

filePath is a null reference.

SecurityException

The caller does not have the required permission.

ArgumentException

The file name is empty, contains only white spaces, or contains invalid characters.

PathTooLongException

The specified path, file name, or both exceed the system-defined maximum length. For example, on Windows-based platforms, paths must be less than 248 characters, and file names must be less than 260 characters.

NotSupportedException

filePath contains a colon (:) in the middle of the string.

Remarks

This constructor does not check if the file exists. This constructor is a placeholder for a string that is used to access the file in subsequent operations.

The filePath parameter can be a directory on a network file share accessible via a mapped drive letter or UNC path.